package com.meatball.wph.report.wph.controller;

import com.meatball.wph.report.wph.service.WphService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Map;

@RestController
@RequestMapping("/report/bi/wph")
public class WphController {
    @Resource
    private WphService service;

    /**
     * 返回人员占比
     * xcount 新人员数量
     * lcount 老用户数量
     * @return
     */
    @GetMapping("/getUserProportion")
    Map<String, Integer> getUserProportion() {
        return service.getUserProportion();
    }
}
